package si.yun.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-07-28 19:30:37
 * @Description 前端人员表
 */
@Entity
@Table ( name ="sy_before_user" )
public class SyBeforeUser  implements Serializable {
	private static final long serialVersionUID =  2899554398471562361L;

	/**
	 * 主键id
	 */
   	@Column(name = "user_id" )
	private int userId;

	/**
	 * 用户账号，唯一
	 */
   	@Column(name = "account" )
	private String account;

	/**
	 * 用户昵称
	 */
   	@Column(name = "nickname" )
	private String nickname;

	/**
	 * 用户学号
	 */
   	@Column(name = "user_code" )
	private int userCode;

	/**
	 * 头像url路径
	 */
   	@Column(name = "avatar_url" )
	private String avatarUrl;

	/**
	 * 学习时长
	 */
   	@Column(name = "study_date" )
	private int studyDate;

	/**
	 * 状态（2正常，3禁言，4注销）
	 */
   	@Column(name = "status" )
	private int status;

	/**
	 * 个性签名
	 */
   	@Column(name = "freestyle" )
	private String freestyle;

	/**
	 * 身份证号码
	 */
   	@Column(name = "id_card" )
	private String idCard;

	/**
	 * 手机号码
	 */
   	@Column(name = "phone" )
	private String phone;

	/**
	 * 用户性别（2男，3女）
	 */
   	@Column(name = "sex" )
	private int sex;

	/**
	 * 出生日期
	 */
   	@Column(name = "birth_date" )
	private Date birthDate;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 备注（介绍）
	 */
   	@Column(name = "remarks" )
	private String remarks;

	/**
	 * 求职意向
	 */
   	@Column(name = "intention" )
	private String intention;

	/**
	 * 消费总金额
	 */
   	@Column(name = "consumption" )
	private BigDecimal consumption;

	/**
	 * 照片
	 */
   	@Column(name = "photo_img" )
	private String photoImg;

    /**
     * 照片
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "create_time" )
    private String createTime;

    /**
     * 用户真实姓名
     */
    @Column(name = "real_name" )
    private String realName;

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getUserCode() {
        return userCode;
    }

    public void setUserCode(int userCode) {
        this.userCode = userCode;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public int getStudyDate() {
        return studyDate;
    }

    public void setStudyDate(int studyDate) {
        this.studyDate = studyDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getFreestyle() {
        return freestyle;
    }

    public void setFreestyle(String freestyle) {
        this.freestyle = freestyle;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getIntention() {
        return intention;
    }

    public void setIntention(String intention) {
        this.intention = intention;
    }

    public BigDecimal getConsumption() {
        return consumption;
    }

    public void setConsumption(BigDecimal consumption) {
        this.consumption = consumption;
    }

    public String getPhotoImg() {
        return photoImg;
    }

    public void setPhotoImg(String photoImg) {
        this.photoImg = photoImg;
    }
}
